package com.ruiysoft.entity.mdse;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;

/**
 * <p>
 * 商品sku规则值对应表
 * </p>
 *
 * @author liyahui
 * @since 2018-10-27
 */
@TableName("merchandise_rule_value_rela")
public class MerchandiseRuleValueRela extends Model<MerchandiseRuleValueRela> {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 商铺id
     */
    private Long shopid;

    /**
     * 商品skuid
     */
    @TableField("sku_id")
    private Long skuId;

    /**
     * 规则值id
     */
    @TableField("value_id")
    private Long valueId;

    public Long getId() {
        return id;
    }

    public MerchandiseRuleValueRela setId(Long id) {
        this.id = id;
        return this;
    }
    public Long getShopid() {
        return shopid;
    }

    public MerchandiseRuleValueRela setShopid(Long shopid) {
        this.shopid = shopid;
        return this;
    }
    public Long getSkuId() {
        return skuId;
    }

    public MerchandiseRuleValueRela setSkuId(Long skuId) {
        this.skuId = skuId;
        return this;
    }
    public Long getValueId() {
        return valueId;
    }

    public MerchandiseRuleValueRela setValueId(Long valueId) {
        this.valueId = valueId;
        return this;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "MerchandiseRuleValueRela{" +
        "id=" + id +
        ", shopid=" + shopid +
        ", skuId=" + skuId +
        ", valueId=" + valueId +
        "}";
    }
}
